package com.bw.login.net

import com.bw.base.constants.ApiConst
import com.bw.login.entity.UserResult
import com.bw.http.utils.Res
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {
    @POST(ApiConst.URL_LOGIN)
    suspend fun login(
        @Query("username") username: String,
        @Query("password") password: String
    ): Res<UserResult>


    @POST(ApiConst.URL_REGISTER)
    suspend fun register(
        @Query("username") username: String,
        @Query("password") password: String
    ): Res<UserResult>
}